const home = Vue => {
	const http = uni.$u.http
	// 获取求职意向列表
	let getIntentionList = (params) => http.get('/v1_0/personal/resume/intentionList', params)
	// 修改求职状态
	let getCurrentSave = (params) => http.post('/v1_0/personal/resume/currentSave', params)
	// 添加/修改求职期望
	let getIntentionSave = (params) => http.post('/v1_0/personal/resume/intentionSave', params)
	// 求职期望删除
	let getIntentionDel = (params) => http.post('/v1_0/personal/resume/intentionDelete', params)
	// 获取职位列表
	let getJobList = (params) => http.get('/v1_0/home/job/index', params)
	// 获取职位详情
	let getJobDetailInfo = (params) => http.get('/v1_0/home/job/show', params)
	// 举报职位
	let getTipoff = (params) => http.post('/v1_0/member/info/tipoff', params)
	// 新增职位收藏
	let getFavJobAdd = (params, config) => http.post('/v1_0/member/index/favJobAdd', params, config)
	// 取消职位收藏
	let getFavJobCancel = (params) => http.post('/v1_0/member/index/favJobCancel', params)
	// 职位投递简历
	let getJobApplyAdd = (params) => http.post('/v1_0/member/index/jobApplyAdd', params)
	// 获取公司列表
	let getCorpList = (params) => http.get('/v1_0/home/company/index', params)
	// 获取公司信息
	let getCompanyInfo = (params) => http.get('/v1_0/home/company/show', params)
	// 新增公司收藏
	let getFavCompanyAdd = (params) => http.post('/v1_0/member/index/attentionCompanyAdd', params)
	// 取消公司收藏
	let getFavCompanyCancel = (params) => http.post('/v1_0/member/index/attentionCompanyCancel', params)
	// 获取推荐职位列表
	let getRecommendJobList = (params, config = {
		custom: {
			catch: true
		}
	}) => http.get('/v1_0/company/job/index', params, config)
	// 根据职位获取简历列表
	let getResumeList = (params) => http.get('/v1_0/member/recommend/resume', params)
	// 获取简历列表
	let getResumeListSearch = (params) => http.get('/v1_0/home/resume/index', params)
	// 获取简历详情
	let getResumeDetail = (params) => http.get('/v1_0/home/resume/show', params)
	// 收藏简历
	let getFavResumeAdd = (params) => http.post('/v1_0/member/index/favResumeAdd', params)
	// 取消收藏简历
	let getFavResumeCancel = (params) => http.post('/v1_0/member/index/favResumeCancel', params)
	// 简历下载
	let getResumedownload = (params) => http.post('/v1_0/member/index/downResumeAdd', params)
	// 面试邀请
	let getInterviewSave = (params) => http.post('/v1_0/member/index/interviewAdd', params)
	// 获取IM简历详情
	let getImResumeInfo = (params) => http.post('/v1_0/member/Im/resumeinfo', params)
	Object.assign(uni.$u.api, {
		getIntentionList,
		getCurrentSave,
		getIntentionSave,
		getIntentionDel,
		getJobList,
		getJobDetailInfo,
		getTipoff,
		getFavJobAdd,
		getFavJobCancel,
		getJobApplyAdd,
		getCorpList,
		getCompanyInfo,
		getFavCompanyAdd,
		getFavCompanyCancel,
		getRecommendJobList,
		getResumeList,
		getResumeListSearch,
		getResumeDetail,
		getFavResumeAdd,
		getFavResumeCancel,
		getResumedownload,
		getInterviewSave,
		getImResumeInfo
	})
}

export default home